package com.an.redisl;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.commons.lang3.StringUtils;

public class test3 {

	public static void main(String[] args) {
		String s = "123456789";
		System.out.println(s.indexOf("2"));
		System.out.println(s.substring(0));

		String a2 = "       ";
		System.out.println("pankong:" + StringUtils.isNotBlank(a2));
		System.out.println("pankong2:" + StringUtils.isNotEmpty(a2));

		System.out.println("-----------");
		Pattern pattern = Pattern.compile("^(\\d+)$");

		Matcher matcher = pattern.matcher("122w3");
		System.out.println(matcher.matches());
		String[] aa = {"aaaa","bbbbb"};
		System.out.println(aa);
		f(aa);
		System.out.println("-----------");
		System.out.println(System.currentTimeMillis());
		System.out.println("1517361348979");
		System.out.println("1516598027000");
	}
	
	public static void f(String ... a) {
		for (String string : a) {
			System.out.println(string);

		}
	}
}
